package com.yx.controller;

import com.yx.strategy.context.DownContextStrategy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: dlr
 * @data: 2019/10/27 23:07
 * @desc:
 */
@RestController
public class DownController {

    @Autowired
    private DownContextStrategy downContextStrategy;

    @RequestMapping("/auto/down")
    public String toDown(String type){
        return downContextStrategy.ToDownVideo(type);
    }
}
